package com.woniuxy.mapper;

import com.woniuxy.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 25/07/31/星期四 10:50
 * @Component: 成都蜗牛学苑
 **/
@Repository
public interface ProductMapper extends JpaRepository<Product,Integer> {
    List<Product> findAllByStockBetweenAndPriceBetween(Integer startStock, Integer endStock, Integer startPrice, Integer endPrice);
}
